package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;

/**
 * 交易所品种费率设置
 */

public class ExchangeVarietyRate  implements Serializable {
    private int BreedRateId;
    private String noeName;
    private double tradeVar;
    private double staDuty;
    private double tranFee;
    private double collFee;
    private double handFee;


    public ExchangeVarietyRate() {
    }

    public ExchangeVarietyRate(int breedRateId, String noeName, double tradeVar, double staDuty, double tranFee, double collFee, double handFee) {
        BreedRateId = breedRateId;
        this.noeName = noeName;
        this.tradeVar = tradeVar;
        this.staDuty = staDuty;
        this.tranFee = tranFee;
        this.collFee = collFee;
        this.handFee = handFee;
    }

    public ExchangeVarietyRate(String noeName, double tradeVar, double staDuty, double tranFee, double collFee, double handFee) {
        this.noeName = noeName;
        this.tradeVar = tradeVar;
        this.staDuty = staDuty;
        this.tranFee = tranFee;
        this.collFee = collFee;
        this.handFee = handFee;
    }

    @Override
    public String toString() {
        return "ExchangeVarietyRate{" +
                "BreedRateId=" + BreedRateId +
                ", noeName='" + noeName + '\'' +
                ", tradeVar=" + tradeVar +
                ", staDuty=" + staDuty +
                ", tranFee=" + tranFee +
                ", collFee=" + collFee +
                ", handFee=" + handFee +
                '}';
    }

    public int getBreedRateId() {
        return BreedRateId;
    }

    public void setBreedRateId(int breedRateId) {
        BreedRateId = breedRateId;
    }

    public String getNoeName() {
        return noeName;
    }

    public void setNoeName(String noeName) {
        if (noeName.trim().equals("")){
            this.noeName=null;
        }else
        this.noeName = noeName;
    }

    public double getTradeVar() {
        return tradeVar;
    }

    public void setTradeVar(String tradeVar) {
        if (tradeVar.trim().equals("")){
            this.tradeVar=0;
        }else
        this.tradeVar = Integer.parseInt(tradeVar);
    }

    public double getStaDuty() {
        return staDuty;
    }

    public void setStaDuty(double staDuty) {
        this.staDuty = staDuty;
    }

    public double getTranFee() {
        return tranFee;
    }

    public void setTranFee(double tranFee) {
        this.tranFee = tranFee;
    }

    public double getCollFee() {
        return collFee;
    }

    public void setCollFee(double collFee) {
        this.collFee = collFee;
    }

    public double getHandFee() {
        return handFee;
    }

    public void setHandFee(double handFee) {
        this.handFee = handFee;
    }
}
